<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <body>

        <ui:composition >

            <p:panel >
                <h:panelGrid columns="2" >
                    <p:commandButton id="btnSalvar" 
                                     value="Salvar F10" 
                                     icon="iconSalvar"
                                     action="#{responsavelBean.salvar()}"
                                     update=":geral,:geral:mensagem, :geral:pnlProcesso"
                                     />
                    <p:commandButton value="Voltar Esc"
                                     id="btnVoltar"
                                     action="#{responsavelBean.voltar()}"
                                     icon="iconFechar"
                                     update=":geral:pnlProcesso, :geral:mensagem"/>
                </h:panelGrid>
            </p:panel>


            <h:panelGrid columns="2">

                <h:outputText  value="Nome: *"/>
                <p:inputText id="nomeC" value="#{responsavelBean.responsavel.nome}" label="Nome" size="46"/>
                <h:outputText value="Parentesco:"/>
                <p:selectOneMenu value="#{responsavelBean.responsavel.parentesco}">
                    <f:selectItem itemLabel="Primo(a)" itemValue="Primo(a)"/>
                    <f:selectItem itemLabel="Pai" itemValue="Pai"/>
                    <f:selectItem itemLabel="Mãe" itemValue="Mãe"/>
                    <f:selectItem itemLabel=" Avô(á)" itemValue=" Avô(á)"/>
                </p:selectOneMenu>
            </h:panelGrid>


        </ui:composition>

    </body>
</html>
